
#!/bin/bash
BASEDIR=$(dirname "$0")
cd $BASEDIR/..

export XMAKE_GLOBALDIR=$(pwd)


xmake g --network=private
xmake f -p android \
    --ndk=/opt/android-sdk/ndk/26.0.10792818 \
    --APP_STATIC_LIB=y \
    -vD \
    -y \
    -m releasedbg \
    --ndk_sdkver=30 \
    -a arm64-v8a
xmake project -k compile_commands
xmake -vD -w
xmake install -o install


